IOMMU: add phantom function support
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Jan 2013 11:55:42 +0000 (12:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Jan 2013 11:55:42 +0000 (12:55 +0100)
commit4e9950dc1bd23d0eb61f25c5355318bfdd33657e
treebe03bc00088704efd04a9b56bde9bc82b49f58ef
parente7e08d86ad2fe984dccbe1a5673c33b3e118f12c
IOMMU: add phantom function support

Apart from generating device context entries for the base function,
all phantom functions also need context entries to be generated for
them.

In order to distinguish different use cases, a variant of
pci_get_pdev() is being introduced that, even when passed a phantom
function number, would return the underlying actual device.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: "Zhang, Xiantao" <xiantao.zhang@intel.com>
xen/drivers/passthrough/amd/iommu_cmd.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/include/xen/lib.h
xen/include/xen/pci.h